ComponentOne Reports for WPF
C1.C1Report Namespace / C1Report Class / PrintDialog Method / PrintDialog(PrinterSettings,Int32[],Boolean) Method
The printer settings to use.
The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.
Indicates whether to show print progress.

In This Topic
    PrintDialog(PrinterSettings,Int32[],Boolean) Method
    In This Topic
    Shows the standard print dialog, allowing the user to print the current document.
    Syntax
    'Declaration
     
    Public Overloads Function PrintDialog( _
       ByVal printerSettings As PrinterSettings, _
       ByVal selectedPageNumbers() As Integer, _
       ByVal showProgress As Boolean _
    ) As Boolean
    public bool PrintDialog( 
       PrinterSettings printerSettings,
       int[] selectedPageNumbers,
       bool showProgress
    )

    Parameters

    printerSettings
    The printer settings to use.
    selectedPageNumbers
    The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.
    showProgress
    Indicates whether to show print progress.

    Return Value

    true if the document was printed, false otherwise.
    Remarks
    This method is a shortcut to the corresponding PrintDialog(...) method on the C1Document property of the current report. The report will be rendered if it was not rendered yet.
    See Also